/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package qltv;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 *
 * @author ThaoLe
 */
public class test {
    public static void main(String[] args) throws SQLException {
        connect kn = new connect();
        Connection con = kn.connect();
        Statement stm = con.createStatement();
        ResultSet rs = stm.executeQuery("Select * from DOCGIA");
        while(rs.next()){
            System.out.println(rs.getString("MADOCGIA"));
        }
        stm.close();
        rs.close();
        con.close();
    }
}
